#include<iostream>
using namespace std;
const int N = 15;
int n;
int main()
{
	while (cin >> n) {
		if (n == 1) {
			cout << "*" << endl;
			continue;
		}
		int k = n - 1;
		for (int i = 1; i <= n; i++) {
			for (int j = k; j >= 1; j--) {
				cout << " ";
			}
			for (int j = 1; j <= 2 * i - 1; j++) {
				cout << "*";
			}
			k--;
			cout << endl;
		}
	}
	return 0;
}